package com.food.dao.in;

import java.io.InputStream;
import java.util.List;

import com.food.model.Product;

public interface ProductDAO {
	public void insertProduct(Product bean);

	public void updateProduct(String pname, int pprice, String pcooker,
			String pcountry, String ppath, String pintroduce, int pid);

	public void deleteProduct(int pid);

	public List<Product> findAllProduct();
	
	public Product findOneProduct(int pid);

	public List<Product> findProductByCountry(String pcountry);

	public List<Product> findProductByCooker(String pcooker);
	
	public List<Product> findProductByName(String pname);
	
	public List<Product> findAllProductPages(int pagesize,int pageindex);

	public List<Product> find_Search_Pages(int pagesize, int pageindex, String search);
	

}
